import request from '@/utils/request'

// 获取设计师评价列表
export function getReviewList(params) {
  return request({
    url: '/designer/reviews',
    method: 'get',
    params
  })
}

// 获取设计师评价详情
export function getReview(id) {
  return request({
    url: `/designer/reviews/${id}`,
    method: 'get'
  })
}

// 审核设计师评价
export function auditReview(id, data) {
  return request({
    url: `/designer/reviews/${id}/audit`,
    method: 'post',
    data
  })
}

// 通过设计师评价
export function approveReview(id) {
  return request({
    url: `/designer/reviews/${id}/approve`,
    method: 'post'
  })
}

// 拒绝设计师评价
export function rejectReview(id, reason) {
  return request({
    url: `/designer/reviews/${id}/reject`,
    method: 'post',
    data: { reason }
  })
} 